<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/2/22 0022
 * Time: 22:49
 */

namespace app\common\validate;

use think\Validate;

class Cate extends Validate
{
    protected $rule = [
        'catename|导航名称' => 'require|unique:cate'
    ];

    protected $scene = [
        'add' => ['catename'],
        'edit' => ['catename']
    ];
}